package com.ruoyi.yl.careSetting.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.utils.PageUtils;
import com.ruoyi.yl.careSetting.domain.YlCareItem;
import com.ruoyi.yl.careSetting.vo.YlCareItemVo;
import com.ruoyi.yl.careSetting.mapper.YlCareItemMapper;
import com.ruoyi.yl.careSetting.service.IYlCareItemService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 护理项目Service业务层处理
 *
 * @author Ming
 * @date 2025-10-21
 */
@Service
public class YlCareItemServiceImpl extends ServiceImpl<YlCareItemMapper, YlCareItem> implements IYlCareItemService {

    @Override
    public TableDataInfo<YlCareItemVo> queryList(YlCareItemVo entity) {
        return PageUtils.buildDataInfo(this.baseMapper.queryList(PageUtils.buildPage(), entity));
    }

    @Override
    public List<YlCareItemVo> queryAll(YlCareItemVo entity) {
        return this.baseMapper.queryList(entity);
    }

    @Override
    public YlCareItemVo queryById(Long id) {
        return this.baseMapper.queryById(id);
    }
}
